package main

import (
	"fmt"
	"math"
	"math/cmplx"
)

var (
	aa = 3
	bb = "guo"
	cc = true
)

func variableZeroValue() {
	var a int
	var s string
	fmt.Printf("%d %q\n", a, s)
}

func variableInitialValue() {
	var a, b int = 3, 4
	var c string = "abc"
	fmt.Println(a, b, c)
}

func variableTypeDeduction() {
	var a, b, c, s = 3, 4, true, "cat"
	fmt.Println(a, b, c, s)
}

func variableShort() {
	a, b, c, s := 1, 2, false, "dog"
	fmt.Println(a, b, c, s)
}

func euler() {
	c := 3 + 4i
	fmt.Println(cmplx.Abs(c))
}

func triangle() {
	var a, b int = 3, 4
	var c int
	c = int(math.Sqrt(float64((a*a + b*b))))
	fmt.Println(c)
}

func main() {
	triangle()
	//euler()
	//variableShort()
	//variableTypeDeduction()
	//variableInitialValue()
	//variableZeroValue()
	//fmt.Println("Hello worldd")
}
